//
//  PayBackMoneyViewController.m
//  XDCommonApp
//
//  Created by xindao on 14-7-2.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "PayBackMoneyViewController.h"

@interface PayBackMoneyViewController ()

@end

@implementation PayBackMoneyViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.titleLabel.text = @"还款";

    UIWebView * webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, UI_MAINSCREEN_HEIGHT - UI_NAVIGATION_BAR_HEIGHT)];
    webView.delegate = self;
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.paypalm.cn/user"]]];
    [self.contentView addSubview:webView];
}

- (void)webViewDidFinishLoad:(UIWebView *)webView{
    [XDTools hideProgress:self.contentView];
}

- (void)webViewDidStartLoad:(UIWebView *)webView{
    [XDTools showProgress:self.contentView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
